<template>
    <div>
        <h1>属性透传</h1>
    </div>
</template>

<script setup>
// const emit=defineEmits(['click'])
defineOptions({
  inheritAttrs: false
})
</script>

<style>
    .red{
        background-color: red;
    }
</style>